<template>
  <div>
    <h1>{{ userStore.username }}</h1>
  </div>
</template>

<script setup lang="ts">
import { onMounted } from 'vue'
import useUserStore from '@/store/modules/user'
let userStore = useUserStore()
//目前首页挂载完毕发请求
onMounted(() => {
  userStore.userInfo()
})
</script>
<style scoped></style>
